package cn.lovemmd.model.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("model_log")
public class ModelLog {
    
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private Integer mId;
    private String mUser;
    private String mName;
    private String mAction; // download, view, like, share
    private String mIp;
    private String mUserAgent;
    private String mReferer;
    private String mSessionId;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime mTime;
    
    @TableLogic
    private Integer deleted;
}
